package com.hdax.service.Impl;

import com.hdax.entity.Interview;
import com.hdax.mappers.InterviewMapper;
import com.hdax.service.InterviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 面试服务impl
 *
 * @author Aizen
 * @date 2022/06/04
 */
@Service
public class InterviewServiceImpl implements InterviewService {

    @Autowired
    private InterviewMapper interviewMapper;

    @Override
    public List<Interview> findAll(int offset, int limit, Interview interview) {
        return interviewMapper.findAll(offset,limit,interview);
    }

    @Override
    public int count(Interview interview) {
        return interviewMapper.count(interview);
    }

    @Override
    public List<Interview> findOne() {
        return interviewMapper.findOne();
    }

    @Override
    public Interview findByid(int id) {
        return interviewMapper.findByid(id);
    }

    @Override
    public int insertDem(Interview interview) {
        return interviewMapper.insertDem(interview);
    }

    @Override
    public int updateDem(Interview interview) {
        return interviewMapper.updateDem(interview);
    }

    @Override
    public List<Interview> setTime(String endtime) {
        return interviewMapper.setTime(endtime);
    }
}
